Component({
  properties: {
    url: String,
    desc: String,
    tags: Array,
    type: String, // 添加type属性
    pageRoute: String, // 添加pageRoute属性
  },
  methods: {
    handleTap() {
      this.triggerEvent('tapcard', {
        url: this.data.url,
        desc: this.data.desc,
        tags: this.data.tags,
        type: this.data.type, // 传递type字段
        pageRoute: this.data.pageRoute, // 传递pageRoute字段
      });
    },
  },
});